<!--
 $ @Author: liujiajun 45444154+wo1261931780@users.noreply.github.com
 $ @Date: 2022-06-07 20:50:47
 $ @LastEditors: liujiajun 45444154+wo1261931780@users.noreply.github.com
 $ @LastEditTime: 2022-06-07 20:50:51
 $ @FilePath: \st-html.github.io\src\aaa008\a040id选择器.html
 $ @Description: 1111
 $ @
 $ @Copyright (c) 2022 by liujiajun 45444154+wo1261931780@users.noreply.github.com, All Rights Reserved.
 -->
<!DOCTYPE html>
<html lang="en">

    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible"
              content="IE=edge">
        <meta name="viewport"
              content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <style>
            #testid {
                color: red;
            }
        </style>

    </head>

    <body>
        <!-- <div class="testid">我是id选择器</div> -->
        <div id="testid">我是id选择器</div>
        <!-- id选择器的特殊之处，在于使用需要用id标签来调用 -->
        <!-- 同时，id本身就不打算用来美化， -->
        <!-- id是用来识别一个元素的，一般用来配合JavaScript -->

    </body>

</html>